﻿using Neural;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace NNTest
{
    
    
    /// <summary>
    ///This is a test class for NeuronTrainingTest and is intended
    ///to contain all NeuronTrainingTest Unit Tests
    ///</summary>
    [TestClass()]
    public class NeuronTrainingTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for WeightUpdates
        ///</summary>
        [TestMethod()]
        public void WeightUpdatesTest()
        {
            NeuronTraining target = new NeuronTraining(); // TODO: Initialize to an appropriate value
            double[] actual;
            actual = target.WeightUpdates;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for WeightAdjustments
        ///</summary>
        [TestMethod()]
        public void WeightAdjustmentsTest()
        {
            NeuronTraining target = new NeuronTraining(); // TODO: Initialize to an appropriate value
            double[] actual;
            actual = target.WeightAdjustments;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Trainer
        ///</summary>
        [TestMethod()]
        public void TrainerTest()
        {
            NeuronTraining target = new NeuronTraining(); // TODO: Initialize to an appropriate value
            Trainer actual;
            actual = target.Trainer;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for PriorWeightAdjustments
        ///</summary>
        [TestMethod()]
        public void PriorWeightAdjustmentsTest()
        {
            NeuronTraining target = new NeuronTraining(); // TODO: Initialize to an appropriate value
            double[] actual;
            actual = target.PriorWeightAdjustments;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Partials
        ///</summary>
        [TestMethod()]
        public void PartialsTest()
        {
            NeuronTraining target = new NeuronTraining(); // TODO: Initialize to an appropriate value
            double[] actual;
            actual = target.Partials;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for PartialDerivatives
        ///</summary>
        [TestMethod()]
        public void PartialDerivativesTest()
        {
            NeuronTraining target = new NeuronTraining(); // TODO: Initialize to an appropriate value
            double[] actual;
            actual = target.PartialDerivatives;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Momentum
        ///</summary>
        [TestMethod()]
        public void MomentumTest()
        {
            NeuronTraining target = new NeuronTraining(); // TODO: Initialize to an appropriate value
            double expected = 0F; // TODO: Initialize to an appropriate value
            double actual;
            target.Momentum = expected;
            actual = target.Momentum;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for LearningRate
        ///</summary>
        [TestMethod()]
        public void LearningRateTest()
        {
            NeuronTraining target = new NeuronTraining(); // TODO: Initialize to an appropriate value
            double expected = 0F; // TODO: Initialize to an appropriate value
            double actual;
            target.LearningRate = expected;
            actual = target.LearningRate;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for UpdateWeightAdjustments
        ///</summary>
        [TestMethod()]
        public void UpdateWeightAdjustmentsTest()
        {
            NeuronTraining target = new NeuronTraining(); // TODO: Initialize to an appropriate value
            target.UpdateWeightAdjustments();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for SetSize
        ///</summary>
        [TestMethod()]
        public void SetSizeTest()
        {
            NeuronTraining target = new NeuronTraining(); // TODO: Initialize to an appropriate value
            int sz = 0; // TODO: Initialize to an appropriate value
            target.SetSize(sz);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for EndEpoch
        ///</summary>
        [TestMethod()]
        public void EndEpochTest()
        {
            NeuronTraining target = new NeuronTraining(); // TODO: Initialize to an appropriate value
            target.EndEpoch();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for ClearPartials
        ///</summary>
        [TestMethod()]
        public void ClearPartialsTest()
        {
            NeuronTraining target = new NeuronTraining(); // TODO: Initialize to an appropriate value
            target.ClearPartials();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for CalculatePartials
        ///</summary>
        [TestMethod()]
        public void CalculatePartialsTest()
        {
            NeuronTraining target = new NeuronTraining(); // TODO: Initialize to an appropriate value
            double[] inputs = null; // TODO: Initialize to an appropriate value
            double delta = 0F; // TODO: Initialize to an appropriate value
            target.CalculatePartials(inputs, delta);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for CalculateDelta
        ///</summary>
        [TestMethod()]
        public void CalculateDeltaTest1()
        {
            NeuronTraining target = new NeuronTraining(); // TODO: Initialize to an appropriate value
            double expected = 0F; // TODO: Initialize to an appropriate value
            double actual = 0F; // TODO: Initialize to an appropriate value
            double derivative = 0F; // TODO: Initialize to an appropriate value
            double expected1 = 0F; // TODO: Initialize to an appropriate value
            double actual1;
            actual1 = target.CalculateDelta(expected, actual, derivative);
            Assert.AreEqual(expected1, actual1);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for CalculateDelta
        ///</summary>
        [TestMethod()]
        public void CalculateDeltaTest()
        {
            NeuronTraining target = new NeuronTraining(); // TODO: Initialize to an appropriate value
            double[] feedback = null; // TODO: Initialize to an appropriate value
            double derivative = 0F; // TODO: Initialize to an appropriate value
            double expected = 0F; // TODO: Initialize to an appropriate value
            double actual;
            actual = target.CalculateDelta(feedback, derivative);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for AdjustWeights
        ///</summary>
        [TestMethod()]
        public void AdjustWeightsTest()
        {
            NeuronTraining target = new NeuronTraining(); // TODO: Initialize to an appropriate value
            double[] weights = null; // TODO: Initialize to an appropriate value
            target.AdjustWeights(weights);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for NeuronTraining Constructor
        ///</summary>
        [TestMethod()]
        public void NeuronTrainingConstructorTest()
        {
            NeuronTraining target = new NeuronTraining();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }
    }
}
